package com.zrrd.user.controller.v1;

import com.zrrd.model.common.dtos.ResponseResult;
import com.zrrd.model.user.pojos.ApUser;
import com.zrrd.user.service.ApUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author WanJl
 * @version 1.0
 * @title ApUserTempController
 * @description
 * @create 2023/9/14 17:08
 */
@RestController
@RequestMapping("/api/v1/temp")
public class ApUserTempController {
    @Autowired
    private ApUserService apUserService;
    @GetMapping("/{id}")
    public ResponseResult select(@PathVariable Integer id){
        ApUser user = apUserService.getById(id);
        return ResponseResult.okResult(user);
    }
}
